import unittest, os, time
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException

dictInput = {}


class Test(unittest.TestCase):
    def setUp(self):
        self.chromedriver = "/Applications/Google\ Chrome.app"  # 拷贝到你想要调用的chrome安装路径下即可
        os.environ["webdriver.chrome.driver"] = self.chromedriver
        self.browser = webdriver.Chrome(self.chromedriver)

    def test(self):
        self.browser.get('http://www.baidu.com/')  # 此处xxxx为网页的url


if __name__ == '__main__':
    import sys;

    sys.argv = ['',
                'Test.test'
                ]
    unittest.main()